home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / layout / nsISVGRectangleSink.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  3KB  |  98 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsISVGRectangleSink.idl
  3.  */
  4.  
  5. #ifndef __gen_nsISVGRectangleSink_h__
  6. #define __gen_nsISVGRectangleSink_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17.  
  18. /* starting interface:    nsISVGRectangleSink */
  19. #define NS_ISVGRECTANGLESINK_IID_STR "0340df1d-1096-445f-bbf9-e1d1e5a10827"
  20.  
  21. #define NS_ISVGRECTANGLESINK_IID \
  22.   {0x0340df1d, 0x1096, 0x445f, \
  23.     { 0xbb, 0xf9, 0xe1, 0xd1, 0xe5, 0xa1, 0x08, 0x27 }}
  24.  
  25. /**
  26.  * \addtogroup rendering_backend_interfaces Rendering Backend Interfaces
  27.  * @{
  28.  */
  29. /**
  30.  * Interface handed to nsISVGRendererRegion::getRectangleScans() to
  31.  * obtain an approximation of the region with rectangles.
  32.  */
  33. class NS_NO_VTABLE nsISVGRectangleSink : public nsISupports {
  34.  public: 
  35.  
  36.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_ISVGRECTANGLESINK_IID)
  37.  
  38.   /* void sinkRectangle (in float x, in float y, in float width, in float height); */
  39.   NS_IMETHOD SinkRectangle(float x, float y, float width, float height) = 0;
  40.  
  41. };
  42.  
  43. /* Use this macro when declaring classes that implement this interface. */
  44. #define NS_DECL_NSISVGRECTANGLESINK \
  45.   NS_IMETHOD SinkRectangle(float x, float y, float width, float height); 
  46.  
  47. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  48. #define NS_FORWARD_NSISVGRECTANGLESINK(_to) \
  49.   NS_IMETHOD SinkRectangle(float x, float y, float width, float height) { return _to SinkRectangle(x, y, width, height); } 
  50.  
  51. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  52. #define NS_FORWARD_SAFE_NSISVGRECTANGLESINK(_to) \
  53.   NS_IMETHOD SinkRectangle(float x, float y, float width, float height) { return !_to ? NS_ERROR_NULL_POINTER : _to->SinkRectangle(x, y, width, height); } 
  54.  
  55. #if 0
  56. /* Use the code below as a template for the implementation class for this interface. */
  57.  
  58. /* Header file */
  59. class nsSVGRectangleSink : public nsISVGRectangleSink
  60. {
  61. public:
  62.   NS_DECL_ISUPPORTS
  63.   NS_DECL_NSISVGRECTANGLESINK
  64.  
  65.   nsSVGRectangleSink();
  66.  
  67. private:
  68.   ~nsSVGRectangleSink();
  69.  
  70. protected:
  71.   /* additional members */
  72. };
  73.  
  74. /* Implementation file */
  75. NS_IMPL_ISUPPORTS1(nsSVGRectangleSink, nsISVGRectangleSink)
  76.  
  77. nsSVGRectangleSink::nsSVGRectangleSink()
  78. {
  79.   /* member initializers and constructor code */
  80. }
  81.  
  82. nsSVGRectangleSink::~nsSVGRectangleSink()
  83. {
  84.   /* destructor code */
  85. }
  86.  
  87. /* void sinkRectangle (in float x, in float y, in float width, in float height); */
  88. NS_IMETHODIMP nsSVGRectangleSink::SinkRectangle(float x, float y, float width, float height)
  89. {
  90.     return NS_ERROR_NOT_IMPLEMENTED;
  91. }
  92.  
  93. /* End of implementation class template. */
  94. #endif
  95.  
  96.  
  97. #endif /* __gen_nsISVGRectangleSink_h__ */
  98.